package study;

public abstract class Entry {

    public abstract String getName();

    public abstract int getSize();

    public void printList(){
        printList("");
    }

    public abstract void printList(String prefix);

    protected Entry add(Entry entry) throws FileTreatementException{
        throw new FileTreatementException();
    }

    @Override
    public String toString(){
        return getName() + ":" + getSize();
    }
}
